package com.maila.xiaoaoschool.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;

import com.maila.xiaoaoschool.R;
import com.maila.xiaoaoschool.util.SPUtils;
import com.zhy.autolayout.AutoRelativeLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by Administrator on 2017/10/30.
 */

public class CertificateActivity extends AppCompatActivity {
    @BindView(R.id.white_return_iv)
    AutoRelativeLayout whiteReturnIv;
    @BindView(R.id.user_name)
    TextView userName;
    @BindView(R.id.arl_name)
    AutoRelativeLayout arlName;
    @BindView(R.id.sex)
    TextView sex;
    @BindView(R.id.arl_sex)
    AutoRelativeLayout arlSex;
    @BindView(R.id.tv_school)
    TextView tvSchool;
    @BindView(R.id.arl_school)
    AutoRelativeLayout arlSchool;
    @BindView(R.id.tv_college)
    TextView tvCollege;
    @BindView(R.id.college_rll)
    AutoRelativeLayout collegeRll;
    @BindView(R.id.tv_identity)
    TextView tvIdentity;
    @BindView(R.id.rl_certification)
    AutoRelativeLayout rlCertification;
    @BindView(R.id.tv_school_code)
    TextView tvSchoolCode;
    @BindView(R.id.ral_school_code)
    AutoRelativeLayout ralSchoolCode;
    @BindView(R.id.btn_add_card_a)
    AutoRelativeLayout btnAddCardA;
    @BindView(R.id.btn_add_card_b)
    AutoRelativeLayout btnAddCardB;
    @BindView(R.id.btn_commit)
    TextView btnCommit;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_certificate);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.white_return_iv, R.id.arl_name, R.id.arl_sex, R.id.arl_school, R.id.college_rll, R.id.rl_certification, R.id.ral_school_code, R.id.btn_add_card_a, R.id.btn_add_card_b, R.id.btn_commit})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.white_return_iv:
                finish();
                break;
            case R.id.arl_name:
                break;
            case R.id.arl_sex:
                break;
            case R.id.arl_school:
                break;
            case R.id.college_rll:
                break;
            case R.id.rl_certification:
                break;
            case R.id.ral_school_code:
                break;
            case R.id.btn_add_card_a:
                break;
            case R.id.btn_add_card_b:
                break;
            case R.id.btn_commit:
                SPUtils.put(this,"certify","cert");
                finish();
                break;
        }
    }
}
